package com.mc.music_web.mapper;

import com.mc.music_web.entity.Singer;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
@Mapper
public interface SingerMapper {
    //删除
    int delteSinger(Integer singerId);
    //添加
    int insert(Singer singer);
    //查询所有
    List<Singer> selectAllListSinger();
    //修改
    int updateByPrimaryKeySinger(Singer singer);
    //单查询
    Singer selectByPrimaryKeySinger(Integer singerId);

    //模糊查询
    List<Singer> selectByChooseSinger(String keyword);

}
